package com.tomcov.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;

public class MessageInViewImpl extends Composite implements MessageInView{

	@SuppressWarnings("unused")
	private Presenter presenter;
	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
	interface MyUiBinder extends UiBinder<FlowPanel, MessageInViewImpl> {
	}
	
	@UiField HTML MessageArea;
	@UiField VerticalPanel Cellcontainer;
	@UiField Button replyButton,newButton;

	public MessageInViewImpl(){
		initWidget(binder.createAndBindUi(this));
	}
	
	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter=presenter;
		
	}

	@Override
	public VerticalPanel getCellContainer() {
		return Cellcontainer;
	}

	@Override
	public HTML getMessageArea() {
		return MessageArea;
	}


	@Override
	public Button getReplyButton() {
		return replyButton;
	}
	
	public Button getNewButton() {
		return newButton;
	}

}